package com.ruoyi.etp.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户服务统计对象 etp_customer_service_stats
 *
 * @author xmj
 * @date 2025-09-09
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EtpCustomerServiceStats extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;
    /** 所属组织 */
    @Excel(name = "所属组织")
    private Long deptId;
    /** 累计服务次数 */
    @Excel(name = "累计服务次数")
    private Long totalServiceCount;
    /** 累计服务时长(秒) */
    @Excel(name = "累计服务时长(秒)")
    private Long totalServiceDuration;
    /** 客户状态 */
    @Excel(name = "客户状态")
    private String status;
    /** 客户手机号 */
    @Excel(name = "客户手机号")
    private String phone;
    /** 跟进员工 */
    @Excel(name = "跟进员工")
    private Long userId;
    /** 备注信息 */
    @Excel(name = "备注信息")
    private String notes;
    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerName", getCustomerName())
            .append("deptId", getDeptId())
            .append("totalServiceCount", getTotalServiceCount())
            .append("totalServiceDuration", getTotalServiceDuration())
            .append("status", getStatus())
            .append("phone", getPhone())
            .append("userId", getUserId())
            .append("notes", getNotes())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
        .toString();
    }
}
